package com.example.admin.controller;


import com.example.admin.model.Person;
import com.example.admin.result.ResponseResult;
import com.example.admin.service.TemplateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/template")
public class TemplateController {

    @Autowired
    TemplateService templateService;

    @RequestMapping(value = "/queryPersonTemplate", method = RequestMethod.GET)
    public ResponseResult<Map<String, List<Person>>> queryPersonTemplate(){
        return templateService.queryPersonTemplate();
    }

}
